home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part2 / 15413 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.1 KB

  1. Path: newshub.cts.com!ns
  2. From: tsk@cts.com (John Lutz)
  3. Newsgroups: comp.os.ms-windows.programmer.tools.mfc,comp.lang.c++
  4. Subject: Linked Lists
  5. Date: 5 Apr 1996 08:14:14 GMT
  6. Organization: Cathedral Software, Inc.
  7. Message-ID: <4k2kom$k5r@news2.cts.com>
  8. NNTP-Posting-Host: tsk.cts.com
  9. Summary: Linked Lists, C++, Allocation
  10. Keywords: Linked Lists, C++, Allocation
  11.  
  12.  
  13. Hello everyone!
  14.  
  15.     I have a somewhat interesting problem. I am taking over an existing 
  16. project that is a propretary graphic object based engine. Essentially the 
  17. product is a game. The existing product wasen't complete in design or 
  18. implementation.
  19.  
  20.  There are several objects...
  21.     
  22.  
  23.     Graphic Object-----V
  24.         Animation Sprite__V
  25.             Prop Sprite
  26.         TextSprite
  27.         
  28.         Indicator (fuel gauge)
  29.         Button
  30.  
  31.     Etc..
  32.  
  33.   I would like to store all the objects in a linked list for a given window. I 
  34. would like for the linked list to handle the dynamic allocation of these 
  35. object and return the pointer to the subclass that is allocating the objects 
  36. on the linked list. I would like for the linked list class to delete all 
  37. objects dynamically.
  38.  
  39. Any help is appreciated in this area.
  40.  
  41.  
  42. John
  43.  
  44. tsk@cts.com
  45.